import request from "../utils/request";

export const getActivityList = () => {
    return request({
        url: '/activity/getActivityList',
        method: 'get',
    })
}
export const joinActivity = aid => {
    return request({
        url: '/activity/joinActivity?aid=' + aid,
        method: 'get',
    })
}
export const exitActivity = aid => {
    return request({
        url: '/activity/exitActivity?aid=' + aid,
        method: 'get',
    })
}
export const editProfile = data => {
    return request({
        url: '/user/editProfile',
        method: 'post',
        data,
    })
}